//
//  BackgroundObject.h
//  CandyJump
//
//  Created by Bon Lam on 05/04/2011.
//  Copyright 2011 Peru Republic. All rights reserved.
//

#import "Model.h"

//=====================================================================================================================
@interface BackgroundObject : Model {
	
	/*	Static	*/
	//	Identity
	NSString*	name;
	
	//	Position
	float posx;
	float posy;
	float posz;
	
	//	Repeat
	int repeat;
	int repeatOffset;
	
	//! The scroll pixels that this object will return to original position
	int scrollOffset;
	
	/*	Runtime	*/
	//  Scroll
	float scrollX;
	float scrollY;
}

//---------------------------------------------------------------------------------------------------------------------
@property(nonatomic, retain, readonly)NSString* name;
@property(nonatomic, assign, readonly)float posx;
@property(nonatomic, assign, readonly)float posy;
@property(nonatomic, assign, readonly)float posz;
@property(nonatomic, assign, readonly)int repeat;
@property(nonatomic, assign, readonly)int repeatOffset;
@property(nonatomic, assign, readonly)int scrollOffset;
@property(nonatomic, assign, readonly)float scrollX;
@property(nonatomic, assign, readonly)float scrollY;

#pragma mark -
#pragma mark Object Functions
- (id)init;
- (void)dealloc;
- (id)copyWithZone:(NSZone *)zone;
- (BackgroundObject*)createWithRepeatOffset:(int)offset;
@end
